package com.jiubanqingchen.config;

import com.jfinal.aop.AopManager;
import com.jiubanqingchen.framework.base.controller.IAdminService;
import com.jiubanqingchen.org.user.AdminService;

/**
 * 实现一些在系统启动后的功能
 * @author light_dust
 * @since 2021/1/4 17:59
 */
public class WishAdminStart {
    private static final WishAdminStart me = new WishAdminStart();

    public static WishAdminStart me() {
        return me;
    }

    public void init() {
        addAopMapping();
    }

    /**
     * 添加aop 注入映射
     */
    public void addAopMapping() {
        AopManager.me().addMapping(IAdminService.class, AdminService.class);
    }

    /**
     * todo 添加动态数据源
     */
    public void addDynamicDatasource() {
        //DbKit.addConfig();
    }

}
